typedef unsigned long gbuint32;
typedef unsigned short gbuint16;
-typedef long gbint32;
+typedef int gbint32;
typedef short gbint16;
+#include <stdint.h>
#else
#include <string.h>
#include <math.h> /* for lat/lon conversion */
+#if defined(_MSC_VER)
+//Incomplete implementation, use existing GB function
+#define lround si_round
+#endif
+
typedef struct lowranceusr_icon_mapping {
const int value;
const char* icon;
#include <math.h> /* for lat/lon conversion */
#include <time.h> /* for gmtime */
+#if defined(_MSC_VER)
+//Incomplete implementation, use existing GB function
+#define round si_round
+#endif
+
/* from waypt.c, we need to iterate over waypoints when extracting
routes */
extern queue waypt_head;
const char* tag_name;
} xg_tag_mapping;
-extern char* xhtml_entities;
+extern const char* xhtml_entities;
void write_xml_entity(gbfile* ofd, const QString& indent,
const QString& tag, const QString& value);